package theTVDB.com.control
{
   import com.adobe.cairngorm.control.FrontController;
   import theTVDB.com.command.GetDefaultEpisodeCommand;
   import theTVDB.com.command.GetSeriesCommand;
   import theTVDB.com.command.SearchSeriesCommand;
   import theTVDB.com.event.GetDefaultEpisodeEvent;
   import theTVDB.com.event.GetSeriesEvent;
   import theTVDB.com.event.SearchSeriesEvent;

   public class Controller extends FrontController
   {
      private static var UUID : String = "8015aff8-4387-491a-b11f-24b131cb9205";

      public function Controller()
      {
         initialiseCommands();
      }

      private function initialiseCommands() : void
      {
         addCommand( GetDefaultEpisodeEvent.EVENT_NAME, GetDefaultEpisodeCommand );
         addCommand( GetSeriesEvent.EVENT_NAME, GetSeriesCommand );
         addCommand( SearchSeriesEvent.EVENT_NAME, SearchSeriesCommand );
      }
   }
}
